package com.eesujie.xcs.mapper;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eesujie.xcs.entity.po.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author eesujie
 * @since 2023-04-18
 */
@Mapper
public interface UserMapper extends BaseMapper<UserPO> {
    @Select("SELECT * FROM `user` WHERE username = #{username} and password = #{password}")
    UserPO selectOneByLogin(String username, String password);
}
